/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * NuGat-API named Chameleon developed by Simon De Baets to Verimag.
 *
 */


package chameleon.model.NuGatStructure.opt;

import chameleon.gameSolver.NuGat.NuGatInterface;
import chameleon.model.NuGatStructure.NuGatStructure;
import com.sun.jna.Pointer;

/**
 * This class is a wrapper to the C struct optCmd.c
 *
 * @author simon
 */
public class Opt extends NuGatStructure {

    public Opt(Pointer opt, NuGatInterface nugat){
        super (opt,nugat);
    }

    public void setPgmPath(String str){
        nugat_.set_pgm_path(this.ptr(), str);
    }

    public void unsetBatch(){
        nugat_.unset_batch(this.ptr());
    }

    public void setInputFile(String fileNameModel){
        nugat_.set_input_file(this.ptr(), fileNameModel);
    }
    
    public void setInputOrderFile (String fileNameOrder){
        nugat_.set_input_order_file(this.ptr(), fileNameOrder);
    }

    public Pointer getPartitionMethod(){
        return nugat_.get_partition_method(this.ptr());
    }
    
    public String getInputOrderFile(){
        return nugat_.get_input_order_file(this.ptr());
    }
    
    public int getVerboseLevel(){
        return nugat_.get_verbose_level(this.ptr());
    }
    
    public boolean verboseLevelGt(int level){
        return((getVerboseLevel() > level));
    }

}
